<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>{$site.name|htmlentities}</title>
    <link rel="shortcut icon" href="__CDN__/assets/img/favicon.ico"/>
    <link href="__CDN__/assets/css/index.css" rel="stylesheet">
    <link href="__CDN__/assets/css/user.css?v={$Think.config.site.version|htmlentities}" rel="stylesheet">
    {include file="common/meta" /}
    <style>
       .hed{
        background-color: #fff;
        padding: 10px 0;
       }
    </style>
    
   
</head>

<body style="padding: 60px 0  0;">
    <nav class="navbar navbar-white navbar-fixed-top" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#header-navbar">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="{:url('/')}">{$site.name|htmlentities}</a>
            </div>
            <div class="collapse navbar-collapse" id="header-navbar">
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="{:url('/')}">{:__('Home')}</a></li>
                    <li class="dropdown">
                        {if $user}
                        <a href="{:url('user/index')}" class="dropdown-toggle" data-toggle="dropdown">
                            <span class="avatar-img"><img src="{$user.avatar|htmlentities|cdnurl}" alt=""></span>
                            <span class="visible-xs-inline-block" style="padding:5px;">{$user.nickname} <b class="caret"></b></span>
                        </a>
                        {else /}
                        <a href="{:url('user/index')}" class="dropdown-toggle" data-toggle="dropdown">{:__('Member center')} <b class="caret"></b></a>
                        {/if}
                        <ul class="dropdown-menu">
                            {if $user}
                            <li><a href="{:url('user/index')}"><i class="fa fa-user-circle fa-fw"></i>{:__('User center')}</a></li>
                            <li><a href="{:url('user/profile')}"><i class="fa fa-user-o fa-fw"></i>{:__('Profile')}</a></li>
                            <li><a href="{:url('user/changepwd')}"><i class="fa fa-key fa-fw"></i>{:__('Change password')}</a></li>
                            <li><a href="{:url('user/logout')}"><i class="fa fa-sign-out fa-fw"></i>{:__('Sign out')}</a></li>
                            {else /}
                            <li><a href="{:url('user/login')}"><i class="fa fa-sign-in fa-fw"></i> {:__('Sign in')}</a></li>
                            <li><a href="{:url('user/register')}"><i class="fa fa-user-o fa-fw"></i> {:__('Sign up')}</a></li>
                            {/if}

                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

<div id="mainbody">
    <div class="container" >
        <div class="text-center" style="padding: 0;">
            <h3 style="background-color: #1798f2;color: #fff;margin: 0;line-height: 50px;">{$site.name|htmlentities}</h1>
          <div class="hed" >
            <div class="row">
                <div class="col-xs-12">
                    <div class="col-xs-2">
                        <img style="width: 50px;height: 50px;" src="{$user.avatar|htmlentities|cdnurl}" alt="">
                    </div>
                   
                   <div class="col-xs-10" style="text-align: left;">
                   <h4>欢迎你！ <span style="color:#1798f2 ;">{$user.nickname}</span> </h1>
                    请提交你的一月一测数据
                  </div>
                  <!-- <div class="col-xs-4">
                    <a href="{:url('index/user/index', '', false, true)}">{:__('Member center')}</a>
                  </div> -->
                 
                
                  </div>

            </div>
           
          
          </div>

       {if($record)}
          
        {if($is_put)}
        <img src="__CDN__/assets/img/success.svg" alt=""   width="200" height="200" style="margin-top: 50px;">

        <h5 style="color: green;margin-top: 20px;">本月你已提交过</h5>
        {else/}
        <div class="container contents" style="background-color: #fff;margin-top: 30px;padding: 10px 0;">
            <div class="col-md-12"><p>-------- 基础信息 --------</p> </div>
            <div class="col-md-12" style="text-align: left;">
              性别： {$user.gender}
              <br>
               年龄：{$age}
               <br>
               学校: {$schoolname.schoolname ? $schoolname.schoolname : ''}
               <br>
                年级：{$user.grade}
                <br>
               班级：{$user.classd}
                
            </div>
        </div>
        <form action="" id="login-form1" method="POST">
            <table class="table table-striped" style="background-color: #fff;">

                <input type="hidden" name="task_id" value="{$record['id']}">
                <input type="hidden" name="idcard" value="{$user.username}">
                <input type="hidden" name="mobile" value="{$user.mobile}">
                <input type="hidden" name="grade" value="{$user.grade}">
                <input type="hidden" name="classd" value="{$user.classd}">
                <input type="hidden" name="ethnicity" value="{$user.ethnicity}">
               
                <tr>
                    <td>检查项目</td>
                    <td>右眼</td>
                    <td>左眼</td>
                  
                </tr>
                <tr>
                    <td>裸眼视力</td>
                    <td>
                        <select id="lyslr" name="naked_left"  class="form-control">
                            <option >请选择</option>
                            <option value="4.0">4.0</option>
                            <option value="4.1">4.1</option>
                            <option value="4.2">4.2</option>
                            <option value="4.3">4.3</option>
                            <option value="4.4">4.4</option>
                            <option value="4.5">4.5</option>
                            <option value="4.6">4.6</option>
                            <option value="4.7">4.7</option>
                            <option value="4.8">4.8</option>
                            <option value="4.9">4.9</option>
                            <option value="5.0">5.0</option>
                            <option value="5.1">5.1</option>
                            <option value="5.2">5.2</option>
                            <option value="5.3">5.3</option>
                        </select>                           
                        </td>
                    <td><select id="lyslr" name="naked_right"  class="form-control">
                        <option >请选择</option>
                        <option value="4.0">4.0</option>
                        <option value="4.1">4.1</option>
                        <option value="4.2">4.2</option>
                        <option value="4.3">4.3</option>
                        <option value="4.4">4.4</option>
                        <option value="4.5">4.5</option>
                        <option value="4.6">4.6</option>
                        <option value="4.7">4.7</option>
                        <option value="4.8">4.8</option>
                        <option value="4.9">4.9</option>
                        <option value="5.0">5.0</option>
                        <option value="5.1">5.1</option>
                        <option value="5.2">5.2</option>
                        <option value="5.3">5.3</option>
                    </select></td>

                </tr>
                <tr>
                    <td>戴镜视力</td>
                    <td><select class="form-control" name="glasses_left">
                        <option >请选择</option>
                        <option value="4.0">4.0</option>
                        <option value="4.1">4.1</option>
                        <option value="4.2">4.2</option>
                        <option value="4.3">4.3</option>
                        <option value="4.4">4.4</option>
                        <option value="4.5">4.5</option>
                        <option value="4.6">4.6</option>
                        <option value="4.7">4.7</option>
                        <option value="4.8">4.8</option>
                        <option value="4.9">4.9</option>
                        <option value="5.0">5.0</option>
                        <option value="5.1">5.1</option>
                        <option value="5.2">5.2</option>
                        <option value="5.3">5.3</option></td>
                    <td><select class="form-control" name="glasses_right">
                        <option>请选择</option>
                        <option value="4.0">4.0</option>
                        <option value="4.1">4.1</option>
                        <option value="4.2">4.2</option>
                        <option value="4.3">4.3</option>
                        <option value="4.4">4.4</option>
                        <option value="4.5">4.5</option>
                        <option value="4.6">4.6</option>
                        <option value="4.7">4.7</option>
                        <option value="4.8">4.8</option>
                        <option value="4.9">4.9</option>
                        <option value="5.0">5.0</option>
                        <option value="5.1">5.1</option>
                        <option value="5.2">5.2</option>
                        <option value="5.3">5.3</option>
                      </select></td>
              
                </tr>
                              </table>
                              <button type="submit" class="btn btn-default">提交数据</button>
    </form>
        {/if}
        {else/}
      <img src="__CDN__/assets/img/error.svg" alt=""   width="200" height="200" style="margin-top: 50px;">
      <p>本月暂无任务</p>

        {/if}
            
            <!-- {:token()} -->
        
            
        </div>
    </div>
</div>

<div class="footer">
    <div class="container">
        <p>Copyright @ {$site.name|htmlentities} {:date('Y',time())} 版权所有 <a href="https://beian.miit.gov.cn" target="_blank">{$site.beian|htmlentities}</a></p>
    </div>
</div>

</body>
{include file="common/script" /}
</html>
